<?php

namespace Api\Openapi\Callcenter;

use Api\Openapi\Util;

class Recordnote {
    const URL = '/callcenter/note';

    /**
     * 通话笔记
     *
     * @param $unique_flag
     * @param $note_content
     * @return bool
     */
    public function note($unique_flag, $note_content){
        $body = array(
            'unique_flag'     => $unique_flag,
            'note_content'         => $note_content,
        );
        $params = array(
            "header" => array(),
            "body" => $body,
        );
        $result = Util::request(self::URL, $params);
        return !empty($result['body']) ? $result['body'] : false;
    }
}